﻿using Bricks.Component.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Bricks.Business.Models.Document
{
    /// <summary>
    /// 文档
    /// </summary>
    [Description("文档")]
    public partial class DocumentInfo : EntityBase<Guid>
    {
        public DocumentInfo()
        {
            ID = GuidHelper.NewGuid();
        }

        [Display(Name = "实例ID")]
        public Guid InstanceID { get; set; }

        [Display(Name = "标识")]
        public string Tag { get; set; }

        [StringLength(256)]
        [Display(Name = "文件名称")]
        public string FileName { get; set; }

        [StringLength(64)]
        [Display(Name = "文件大小")]
        public string FileSize { get; set; }

        [Display(Name = "文件路径")]
        public string FilePath { get; set; }

        [Display(Name = "上传人")]
        public Guid UploadUserID { get; set; }

        //上传时间直接用基类的AddDate（不使用，前台不好处理）

        [Display(Name = "上传时间")]
        public string UploadTime { get; set; }
    }
}
